package cn.zhuo.knowledge.util.hutool.random;

import cn.hutool.core.util.RandomUtil;

import java.util.Arrays;

/**
 * <p>
 *
 * @author z2huo
 */
class ArrayFillRandomTest {

    public static void main(String[] args) {
        int[] array = new int[10];
        Arrays.fill(array, RandomUtil.randomInt(10000));
        System.out.println(Arrays.toString(array));

        array = new int[10];
        for (int i = 0; i < array.length; i++) {
            array[i] = RandomUtil.randomInt(10000);
        }
        System.out.println(Arrays.toString(array));
    }

}
